<%@LANGUAGE="VBSCRIPT" CODEPAGE="1251"%>
<%Response.ContentType = "application/xhtml+xml"%>
<%
date1=Date
date1=Split(date1,".")
day1=date1(0)
month1=date1(1)
year1=right(date1(2),1)
alldate=year1&"."&month1&"."&day1
dopinf=request.Form("dopinf")
%> 
<?xml version="1.0" encoding="windows-1251"?>
<Payees ver="<%=alldate%>" comment="<%=dopinf%>">

     <Payee code="PM"  />
	 <Payee code="PMA"/>
<%if Request.Form("code")<>empty then%>	 
 
	<%for v=1 to Request.Form("code").count
		if Request.Form("min")(v)="" then
			min=1
		else
			min=Request.Form("min")(v)
		end if
		
		if Request.Form("max")(v)="" then
			max=30000
		else
			max=Request.Form("max")(v)
		end if
	
		if Request.Form("commission")(v)="" then
			commission=0
		else
			commission=Request.Form("commission")(v)/100
		end if
		
		if Request.Form("minmargin")(v)="" then
			minmargin=0
		else
			minmargin=Request.Form("minmargin")(v)
		end if	
		
		if Request.Form("margin")(v)="" then
			margin=0
		else
			margin=Request.Form("margin")(v)
		end if	
		
		Select Case Request.Form("code")(v)
			Case "MEGCN_I"
			min=30
			Case "CORB_I"
			min=9
			Case "SKYSPB_I"
			min=10
			Case "TELE2_I"
			min=2
			Case "MOTIV_I"
			min=60
			Case "MATRIX_I"
			min=30
			Case "UTEL_I"
			min=10
			Case "PA_OTILA"
			min=50
		end Select
%>
	<Payee code="<%=Request.Form("code")(v)%>" enabled="1" min="<%=min%>" max="<%=max%>" margin="<%=margin%>" comission="<%=commission%>" minmargin="<%=minmargin%>"/>
	<%Next
end if%>
</Payees>
